package org.dizena.modules.wss.avo;

import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.io.Serializable;

@Data
public class ServerCount implements Serializable, Comparable<ServerCount>
{
    private String serverId;
    private Long connectCount;

    @Override
    public int compareTo(@NotNull ServerCount o)
    {
        long res = this.connectCount - o.getConnectCount();
        return (int) res;
    }
}